package org.calculator;

import java.math.BigDecimal;

import javax.ejb.Stateless;

/**
 * 
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-21
 */

/**
 * 
 */

@Stateless
public class CalImpl implements Cal {

	@Override
	public String add(String a, String b) {
		BigDecimal aa = new BigDecimal(a);
		BigDecimal bb = new BigDecimal(b);
		return aa.add(bb).toString();
	}

}
